package com.beidu.lottery.call.entity.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 选项权重设置
 * </p>
 *
 * @author 北渡
 * @since 2023-08-09
 */
@Data
@Builder
@ApiModel(value = "OptionWeightSaveForm", description = "选项权重设置")
@Accessors(chain = true)
@Validated
@AllArgsConstructor
@NoArgsConstructor
public class OptionWeightSaveForm implements Serializable {

    @ApiModelProperty(value = "选项权重id")
    @NotNull
    private Integer voteOptionId;

    @ApiModelProperty(value = "权重")
    private Integer weight;

}
